﻿<%@ Page Title="Edit Profile" Language="C#" MasterPageFile="~/ManagerView.master" AutoEventWireup="true" CodeBehind="PageEditProfile.aspx.cs" Inherits="BestBuy.PageAdmin.PageEditProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <table width="100%" align="center">
        <tr>
            <td colspan="3" class="td_center">
                <h1 class="td_center">
                    <asp:Label ID="Label1" CssClass="td_center" runat="server" Text="Edit Profile"></asp:Label>
                </h1>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td >
                <asp:Panel ID="pnThongBao" runat="server">
                    <asp:Label ID="lbThongBao" runat="server"></asp:Label>
                </asp:Panel>
                <div>
                    <asp:ValidationSummary ID="vsAdd" CssClass="InLeft error message" runat="Server" />
                </div>
            </td>
        </tr>
        <tr>
            <td class="td_right_register">
                 Type Employee :
            </td>
            <td class="td_left_register">
                <asp:Label ID="lbType" runat="Server" ></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td class="td_right_register">
                <span style="color: red">*</span> Email :
            </td>
            <td class="td_left_register" >
                <asp:TextBox ID="txtEmail" runat="server" Width="205px" CssClass="canh_txt" Enabled="false"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="Please provide a valid Email Address."
                    ControlToValidate="txtEmail" CssClass="failureNotification">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Provide a valid Email Address." CssClass="failureNotification"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                <asp:CustomValidator ID="cusvEmail" runat="server" ControlToValidate="txtEmail" ErrorMessage="Email exists."
                    CssClass="failureNotification" OnServerValidate="cusvEmail_ServerValidate">*</asp:CustomValidator>
                <asp:Button ID="btnEmail" CssClass="style_button" runat="Server" 
                    Text="Change Email" CausesValidation="false" onclick="btnEmail_Click"/>
            </td>
        </tr>
        <tr>
            <td class="td_right_register">
                <span style="color: red">*</span> Name :
            </td>
            <td class="td_left_register" >
                <asp:TextBox ID="txtFirstname" runat="server" CssClass="canh_txt"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvFName" runat="server" ControlToValidate="txtFirstName"
                    ErrorMessage="First name is required" CssClass="failureNotification">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="td_right_register">
                Gender :
            </td>
            <td class="td_left_register" >
                <asp:RadioButtonList ID="rblGender" runat="server" RepeatDirection="Horizontal" Width="150px"
                    CssClass="radiobutton">
                    <asp:ListItem Value="false">Male</asp:ListItem>
                    <asp:ListItem Value="true">Female</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="td_right_register">
                Address :
            </td>
            <td class="td_left_register" >
                <asp:TextBox ID="txtAddress" runat="server" Width="205px" CssClass="canh_txt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="td_right_register">
                &nbsp;
            </td>
            <td class="td_left_register" >
                <asp:Button ID="btnJoin" CssClass="style_button" CausesValidation="true" runat="server"
                    Text="Update" onclick="btnJoin_Click"/>
            </td>
        </tr>
    </table>

</asp:Content>
